package com.jet.goods.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UnitDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "单位名不能为空")
    private String name;

    /**
     * 单位计价方式
     */
    @NotNull(message = "计价方式不能为空")
    private Integer type;
}
